package com.example.dao;

import com.example.mapper.CustomerMapper;
import com.example.model.Customer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class CustomerDao {
    @Autowired
    private CustomerMapper customerMapper;

    public Customer findByIdCard(String idCard){
        return customerMapper.selectByIdCard(idCard);
    }
    public Customer findById(Long id){
        return customerMapper.selectByIdCard(id);
    }
}
